package com.hq.shop06back.feign.impl;

import com.hq.shop06back.feign.api.UserService;
import com.hq.shop06back.vo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Slf4j
public class UserServiceImpl implements UserService {
    @Override
    public boolean addUser(User user) {
        log.error("调用user服务中的addUser失败，这里是降级的服务。。。。。。");
        return false;
    }

    @Override
    public List<User> getList() {
        log.error("调用user服务中的getList失败，这里是降级的服务。。。。。。");
        return null;
    }

    @PostMapping("queryList")
    @Override
    public List<User> queryList(User user) {
        return null;
    }
}
